package zli.prototype.general;

import lombok.Data;

/**
 * @Desc
 * @Author Zerlinda
 * @Date 2022/5/9 10:30
 * @Version 1.0
 */
@Data
public class ConcretePrototype implements IPrototype {

    private int age;
    private String name;

    @Override
    public ConcretePrototype clone() {
        ConcretePrototype concretePrototype = new ConcretePrototype();
        concretePrototype.setAge(this.age);
        concretePrototype.setName(this.name);
        return concretePrototype;
    }


}
